﻿<%@page contentType="text/vnd.wap.wml; charset=utf-8"%>
<%@ page import="java.io.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@ page import="common.*"%>
<%@ page import="wapbean.*"%>

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org//DTD//wml_1.1.xml">
<wml>
<%
	String purl=null; 
	ContentFactory Fac = new ContentFactory();   
    Vector ver = new Vector();
    Vector vtr = new Vector();
    Vector<Vector> vct = new Vector<Vector>(); 
	Vector vc = Fac.getMobilemodelBean();
	boolean find = false;
	if (vc != null && !vc.isEmpty()) {
		int n = vc.size();
		System.out.println("nnnnnn=" + n);
		for (int j = 1; j < n; j++) {
		purl = (String) session.getAttribute("p");
			MobilemodelBean ab = (MobilemodelBean) vc.elementAt(j);
			String description = ab.getDescription();
			System.out.println("description=" + description);
			String[] p = description.split(";");
			System.out.println("pppppp=" + p);
			for (int k = 0; k < p.length; k++) {
				System.out.println("kkkkkkkkk=" + p[k]);
		
				System.out.println("kkkpurl---------="
						+ purl.equals(p[k]));
		
				if (purl.equals(p[k])) {
					//System.out.println("kkkpurlkkkkkk="+purl);  
					//ver = Fac.getWapModel1(purl);
					ab=Fac.getmobilemodelDescription(purl);
					String mobileModelId=ab.getMobileModelID();
					String ProviderID=ab.getProviderID();
					ver = Fac.getWapModel2(mobileModelId,ProviderID);
					 String CategoryID=null;
					 Allbean be1=null;
				  if(ver != null && !ver.isEmpty()){
					int t = ver.size();
					for (int m = 1; m < t; m++) {
			         be1 = (Allbean) ver.elementAt(m);
			          vtr=Fac.getwapcategoryTitle(be1.getCategoryID()); 
			          vct.add(vtr);
			         System.out.println("vct==="+vct.size()); 
			        }
			       }   
					
					find = true;
					purl=p[k];
					System.out.println("purlpurlpurlpurlpurlpurlpurlpurlpurlpurl=" + p[k]);  
					break;
				}
			}
			if(find){
			 	break;	
			}
		}
			if(!find){
			//ver = Fac.getWapModel1("bbki8");  
			//purl="bbki8";
			System.out.println("pgggggggggggggggggggggggggggggggggggg=" + find); 
			} 
	}

	// ver = Fac.getWapModel1(purl);
	//WapcategoryFactory Fac1 = new WapcategoryFactory();   
%>
<card id="card1" title="乐游-手机游戏下载">  
<p align="left">
 <img src="/game3.0/img/logo.png" />
	<br />
	<%
 		if (vct != null && !vct.isEmpty()) {
 		int mn = vct.size();
 		System.out.println("mn==="+mn); 
 		for (int i = 0; i < mn; i++) {
 			Vector bea = (Vector) vct.elementAt(i);
       if(bea != null && !bea.isEmpty()){
       int z = bea.size();
       for (int s = 0; s < z; s++) {
		Allbean a = (Allbean)bea.elementAt(s); 
		%>
	<%out.println(a.getCategoryID());%>---<%out.println(a.getEva_CategoryID());%>---<%out.println(a.getTitle());%>	<br /> 
		 <%
	}}}}%>  
	【<a href="wappages/help.jsp">客服咨询</a>】
	<br />
	wap.leyoou.cn

	</p>  
</card>
</wml>